/**
 * Created by zhaott on 2018/12/14.
 */
let data={"id":"id","type":"1","children":[
    {"id":"id","type":"2","children":[
        {"id":"id","type":"3"}
    ]},
    {"id":"id","type":"1"},
    {"id":"id","type":"3"}
]};
let keys={"id":"key"};
function updateKey(data:any,keys:Object,fun?:Function){
    // if( data instanceof "object"){
    //     console.log(data);
    // }
}
updateKey(data,keys,function (data) {
    // if(data instanceof "object"){
    //     if(!data["children"] || data["children"]==null ||data["children"]["lenght"]==0){
    //         return [{"isLeaf":true}];
    //     }else{
    //         return [{}];
    //     }
    // }
});